home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1999 April / Software of the Month - Ultimate Collection Shareware 260.iso / pc / Help.dir / 00001_Script_1 next >
Text File  |  1999-02-02  |  4KB  |  187 lines

  1.  
  2. on startMovie
  3.   
  4.  
  5.   --* This declares the variables for the finger cursor. *
  6.   
  7.   global FINGER, FINGERMASK
  8.   set FINGER to the memberNum of member "Finger1"
  9.   set FINGERMASK to the memberNum of member "Finger2" 
  10.   glowClear()
  11.   
  12. end
  13.  
  14.  
  15. --* This handler hides/shows the glow images. eg: glow(5,TRUE) *
  16.  
  17. on glow WHICHSPRITE, TRUEORFALSE
  18.   set the visible of sprite WHICHSPRITE to TRUEORFALSE
  19. end glow
  20.  
  21. --* TURN OF ALL GLOWS ON START
  22. on glowClear
  23.   repeat with i = 20 to 36
  24.     glow(i)
  25.   end repeat
  26. end
  27.  
  28. --* This handler switches the text color for a glow effect. eg.textglow("Hello",1)*
  29.  
  30. on textglow WHICHMEMBER, COLORNUMBER
  31.   set the foreColor of member WHICHMEMBER to COLORNUMBER  
  32. end textglow
  33.  
  34.  
  35. --* THIS HANDLER EXAMPLE OF DISABLEING HOTSPOTS WHEN RUNNING MIAW*
  36. --on mouseEnter
  37. --  if not count(the windowList) then
  38. --    doRollover(52)
  39. --  end if
  40. --end
  41. --
  42. --
  43. --on mouseLeave
  44. --  if not count(the windowList) then
  45. --    doRollout(52)
  46. --  end if
  47. --end
  48.  
  49.  
  50.  
  51. --* THIS HANDLER OPEN AND CENTERS A MOVIE IN A WINDOW *
  52.  
  53. on openMIAW MYWINDOW
  54.   set myRect=the rect of window MYWINDOW
  55.   set myStage=the rect of the Stage
  56.   set myWidth=(getAt(myRect,3)-getAt(myRect,1))
  57.   set myHeight=(getAt(myRect,4)-getAt(myRect,2))
  58.   set myLocH=((getAt(myStage,3)+getAt(myStage,1))/2)-(myWidth/2)
  59.   set myLocV=((getAt(myStage,2)+getAt(myStage,4))/2)-(myHeight/2)
  60.   set myNewRect=rect(myLocH,myLocV,(myLocH+myWidth),(myLocV+myHeight))
  61.   set the rect of window MYWINDOW=myNewRect
  62.   set the windowType of window MYWINDOW to 2
  63.   open window MYWINDOW
  64. end openMIAW
  65.  
  66.  
  67. --* THESE HANDLERS TURN ON A GLOW, TURN POINTER A HAND AND PLAYS A SOUND *
  68.  
  69. on doRollover NUMSPRITE,NUMSOUND
  70.   glow(numsprite,TRUE)
  71.   global finger,fingermask
  72.   cursor[finger,fingermask]  
  73.   case  NUMSOUND of      
  74.     1: puppetsound 1, "Scissors"
  75.     2: puppetsound 1, "Butane"
  76.     3: puppetsound 1, "Scissors"
  77.     4: puppetsound 1, "Scissors"
  78.   end case 
  79.   updatestage
  80. end
  81.  
  82. on doRollover3 NUMSPRITE,NUMSOUND
  83.   glow(numsprite,TRUE)
  84.   global MAGNIFY, MAGNIFYMASK
  85.   cursor [MAGNIFY,MAGNIFYMASK]
  86.   updatestage
  87.   case  NUMSOUND of
  88.       
  89.     1: puppetsound 1, "Scissors"
  90.     2: puppetsound 1, "Butane"
  91.     3: puppetsound 1, "Scissors"
  92.     4: puppetsound 1, "Scissors"
  93.   end case  
  94. end
  95.  
  96.  
  97.  
  98. on doRollover4 NUMSPRITE,NUMSOUND
  99.   glow(numsprite,TRUE)
  100.   global MAGNIFY2, MAGNIFYMASK
  101.   cursor [MAGNIFY2,MAGNIFYMASK]
  102.   updatestage
  103.   case  NUMSOUND of
  104.       
  105.     1: puppetsound 1, "Scissors"
  106.     2: puppetsound 1, "Butane"
  107.     3: puppetsound 1, "Scissors"
  108.     4: puppetsound 1, "Scissors"
  109.   end case  
  110. end
  111.  
  112.  
  113.  
  114.  
  115. --* THIS HANDLER TURNS THE SPRITE PASSED TO IT TO INVISIBLE AND RESETS THE CURSOR
  116. on doRollout numsprite
  117.   glow(numsprite,FALSE)
  118.   cursor 0
  119. end
  120.  
  121. --* PLAYS A CLICK SOUND
  122.  
  123. on doClick
  124.   puppetsound 1,"close"
  125.   updateStage
  126. end
  127.  
  128.  
  129. on doZoomout numsprite,soundwait
  130.   puppetsound 1, "close"  
  131.   if soundwait then
  132.     repeat while soundbusy (1)
  133.     end repeat
  134.     set soundwait to FALSE
  135.   end if
  136.   glow(numsprite, TRUE)
  137.   global MAGNIFY2, MAGNIFYMASK
  138.   cursor [MAGNIFY2,MAGNIFYMASK]
  139.   updatestage
  140. end
  141.  
  142. on doZoomin numsprite,soundwait
  143.   puppetsound 1, "close"  
  144.   if soundwait then
  145.     repeat while soundbusy (1)
  146.     end repeat
  147.     set soundwait to FALSE
  148.   end if
  149.   glow(numsprite, TRUE)
  150.   global MAGNIFY, MAGNIFYMASK
  151.   cursor [MAGNIFY,MAGNIFYMASK]
  152.   updatestage
  153. end
  154.  
  155.  
  156. on setpath
  157.   Global SETUPPATH95,LINECLICK
  158.   
  159.   case LINECLICK of
  160.       
  161.     1:set SETUPPATH95 to "@\business\Area\Setup.exe"
  162.       
  163.     2:set SETUPPATH95 to "@\business\Mortgage\Setup.exe"
  164.       
  165.     3:set SETUPPATH95 to "@\business\ledger.exe"
  166.       
  167.     4:set SETUPPATH95 to "@\business\Never\NFDemo.exe"
  168.       
  169.     5:set SETUPPATH95 to "@\business\Rent\RvbSetup.exe"
  170.       
  171.     6:set SETUPPATH95 to"@\business\Trial\tcdia32_25.exe"
  172.       
  173.       
  174.       
  175.   end case
  176. end
  177.  
  178.  
  179.  
  180.  
  181. -- Delays for x number of seconds
  182. on timedelay SECONDS 
  183.   startTimer
  184.   repeat while the timer < SECONDS * 60
  185.     nothing
  186.   end repeat    
  187. end